package net.csdn.business.kanban.api.service;

import com.baomidou.mybatisplus.extension.service.IService;
import net.csdn.business.kanban.api.entity.KanbanView;

import java.util.HashMap;
import java.util.List;

/**
 * @ClassName KanbanService
 * @Description TODO
 * @Author liuzhisheng
 * @Date 2023/9/13
 **/
public interface KanbanViewService extends IService<KanbanView> {
    /**删除看板以及看板下的view和自定义字段*/
    boolean removeKanbanView(String kanbanId);

    HashMap<String, Integer> getViewMap(String kanbanId);

    List<KanbanView> getAllKanbanViews(String kanbanId);

    Boolean updateViewPriority(Long id,Integer priority,String kanbanId);

    Boolean viewPriorityAfter(Integer priority,String kanbanId);

    KanbanView getKanbanView(String kanbanId,Long viewId);

    int updateViewFieldDisplayJson(Long fieldId,Boolean isDisplay,String kanbanId);

    Integer maxPriority(String kanbanId);
}

